package cn.china.xfood.service;

import entity.Webinfo;
import mapper.WebinfoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class WebinfoService implements WebinfoMapper {
    @Autowired
    WebinfoMapper webinfoMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return webinfoMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Webinfo record) {
        return webinfoMapper.insert(record);
    }

    @Override
    public int insertSelective(Webinfo record) {
        return webinfoMapper.insertSelective(record);
    }

    @Override
    public Webinfo selectByPrimaryKey(Integer id) {
        return webinfoMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Webinfo record) {
        return webinfoMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Webinfo record) {
        return webinfoMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<Webinfo> selectAll() {
        return webinfoMapper.selectAll();
    }

    @Override
    public Webinfo selectByvisitTime(String visitTime) {
        return webinfoMapper.selectByvisitTime(visitTime);
    }
}
